package com.lq.mapper;


import com.lq.pojo.Link;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface LinkMapper {

    List<Link> getAllLinks(int userId);

    boolean saveLink(Link link, int userId);

    boolean deleteLinkByLinkId(int linkId);

    int getNumsOfLinkByUserId(int userId);
}
